//
//  WSPlayerToolBar.h
//  musicPalyer
//
//  Created by ws on 2019/2/14.
//  Copyright © 2019年 王松. All rights reserved.
//

#import <UIKit/UIKit.h>
@class WSMusic;
@class WSPlayerToolBar;
typedef enum{
    BtnTYpePlay,//播放
    BtnTypePause,//暂停
    BtnTypePrevious,//上一首
    BtnTypeNext//下一首
}BtnType;


@protocol WSPlayToolBarDelegate <NSObject>
-(void)ws_playToolBar:(WSPlayerToolBar *)toolBar btnClickWtihType:(BtnType)btnType;
@end

NS_ASSUME_NONNULL_BEGIN

@interface WSPlayerToolBar : UIView
+(instancetype)playerToolBar;
/**
 当前要播放的音乐模型数据
 */
@property(nonatomic,strong)WSMusic *playingMusicModel;
@property(nonatomic,weak)id<WSPlayToolBarDelegate> delegate;

@property(nonatomic,assign,getter=isPlaying)BOOL playing;//播放状态 默认是暂停的状态
@end

NS_ASSUME_NONNULL_END
